package cn.tiancaifan.micro.chat;

import cn.tiancaifan.micro.entity.SystemResults;
import cn.tiancaifan.micro.service.HrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/chat")
public class ChatContrller {

    @Autowired
    HrService hrService;

    @GetMapping("/hrs")
    public SystemResults getAllHr(){
        return SystemResults.ok(null,hrService.getAllHr());
    }
}
